texture atlas: Add a missing initialization
authorMatthias Clasen <mclasen@redhat.com>
Wed, 5 Jun 2019 12:00:53 +0000 (12:00 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 5 Jun 2019 12:00:53 +0000 (12:00 +0000)
Pointed out by Timm.

gsk/gl/gskgltextureatlas.c

index fb27bbb7edfb9cebca0b312bf221339d16e3e4c4..acc6346c9c67830178751c53cc881f8dd92a7475 100644 (file)
@@ -136,6 +136,8 @@ gsk_gl_texture_atlases_pack (GskGLTextureAtlases *atlases,
   g_assert (width  < ATLAS_SIZE);
   g_assert (height < ATLAS_SIZE);
 
+  atlas = NULL;
+
   for (i = 0; i < atlases->atlases->len; i++)
     {
       atlas = g_ptr_array_index (atlases->atlases, i);